package com.pzb.goods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.annotation.Excel;
import com.pzb.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 商品规格对象 gd_goods_units_key
 * 
 * @author Mr_Wu
 * @date 2021-12-08
 */
public class GdGoodsUnitsKey extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户ID */
    @Excel(name = "商户ID")
    private String extAppid;

    /** 规格 */
    @Excel(name = "规格")
    private String unitName;

    /** 规格键值排序号 */
    @Excel(name = "规格键值排序号")
    private Integer sort;

    private List<GdGoodsUnitsValue> unitsValueList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public List<GdGoodsUnitsValue> getUnitsValueList() {
        return unitsValueList;
    }

    public void setUnitsValueList(List<GdGoodsUnitsValue> unitsValueList) {
        this.unitsValueList = unitsValueList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("unitName", getUnitName())
            .append("sort", getSort())
            .toString();
    }
}
